<template>
	<view>
		<view>
			<web-view class="webView" :src='link' @message="getMsg"></web-view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				link:'',
				index:'0',
				userId:'',
				phone:''
			}
		},
		onLoad(op){
			// console.log(op)
			this.index = op.type
			this.userId = op.userId
			this.phone = op.phone
			// this.link = op.link
			switch(Number(op.type)){
				case 0:
				this.link = op.link
				break
				case 1:
				this.link = op.link+`?phone=${op.phone}&CurrentUserId=${op.userId}`
				break
			}
		},
		methods:{
			getMsg(){
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style lang="scss">
	.webView{
		
	}
</style>
